package cc.mrbird.febs.accounting.service;

import cc.mrbird.febs.accounting.entity.DetailSubject;

import cc.mrbird.febs.common.entity.QueryRequest;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 *  Service接口
 *
 * @author baoyinlei
 * @date 2021-10-11 21:37:40
 */
public interface IDetailSubjectService extends IService<DetailSubject> {
    /**
     * 查询（分页）
     *
     * @param request QueryRequest
     * @param detailSubject detailSubject
     * @return IPage<DetailSubject>
     */
    IPage<DetailSubject> findDetailSubjects(QueryRequest request, DetailSubject detailSubject);

    /**
     * 查询（所有）
     *
     * @param detailSubject detailSubject
     * @return List<DetailSubject>
     */
    List<DetailSubject> findDetailSubjects(DetailSubject detailSubject);

    /**
     * 新增
     *
     * @param detailSubject detailSubject
     */
    void createDetailSubject(DetailSubject detailSubject);

    /**
     * 修改
     *
     * @param detailSubject detailSubject
     */
    void updateDetailSubject(DetailSubject detailSubject);

    /**
     * 删除
     *
     * @param detailSubject detailSubject
     */
    void deleteDetailSubject(String detailSubjectIds);

    List<DetailSubject> queryByProject(Long projectId, Long subjectId);
}
